package com.kx.center.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kx.center.entity.Address;
import com.kx.center.mappers.AddressMapper;
import com.kx.center.service.AddressService;

@Service
public class AddressServiceImpl implements AddressService {

	@Autowired
	AddressMapper addressMapper;
	
	@Override
	public void addAddress(Address address) {
		addressMapper.addAddress(address);
	}

	@Override
	public List<Address> getAddressListByAccount(int accountId) {
		return addressMapper.getAddressListByAccount(accountId);
		
	}

	@Override
	public void deleteAddressById(int id) {
		addressMapper.deleteAddressById(id);
	}

	
}
